Array Insert
Insert member into an array at any position.
Node Data | |
---|---|
ValuesPb Array | |
Display name | |
Array Insert | |
Internal name | |
Node_Array_Insert | |
Inheritances | |
node | |
node_array_insert | |
Inputs | |
node_array_insert | |
any |
Array |
int |
Index |
any |
Value |
bool |
Spread Array |
Outputs | |
node_array_insert | |
any |
Array |
Insert an element into an array at a specific index.
Properties
Array
The array to insert the element into.
Index
The index to insert the element at.
- If the index is negative, it will count from the end of the array.
- If the index is larger than the array length, the element will be appended to the end of the array.
Value
The value to insert.
Spread Array
If the value is an array, choose whether to insert each element of the array individually, or insert the entire array as nested array.
If both Index and Value are arrays, the output will be an array with the values inserted at the specified indexes.